import { Entity, PrimaryGeneratedColumn, Column, PrimaryColumn, BaseEntity, Repository, InsertResult } from "typeorm"
import DateUtil from "../../src/engine/utils/DateUtil"
import { DBSourceManager } from "../../src/engine/utils/DBSourceManager"
import { ClubConfig } from "../config/ClubConfig"


@Entity("t_clubusers")
export class ClubUserEntity {

    @PrimaryGeneratedColumn()
    id:number
    @Column()
    clubid: number = 0
    @Column("bigint")
    userid: number = 0
    @Column()
    user_state: number = ClubConfig.Club_merber_state_type.apply
    @Column()
    actor: number = ClubConfig.Club_Actor_Type.general
    @Column("datetime", { nullable: true })
    join_time: string
    @Column()
    approver: number = 0
    @Column("bigint")
    score: number = 0







}